
container = "agahfafdhadfh)()￥#&**（"
password = input("请输入密码：")
for ele in password:
     if ele not  in container:
          print("密码不合法")
     break
else:
     print("密码合法",password)